# -*- coding: utf-8 -*-

import wx
import wx.xrc


class ErrorDialog(wx.Dialog):

    def __init__(self, parent, msg):
        wx.Dialog.__init__(self, parent, id=wx.ID_ANY, title=wx.EmptyString, pos=wx.DefaultPosition,
                           size=wx.DefaultSize, style=wx.DEFAULT_DIALOG_STYLE)

        self.SetSizeHints(wx.DefaultSize, wx.DefaultSize)

        bSizer9 = wx.BoxSizer(wx.VERTICAL)

        self.m_staticText4 = wx.StaticText(self, wx.ID_ANY, msg, wx.DefaultPosition, wx.DefaultSize,
                                           wx.ALIGN_CENTER_HORIZONTAL)
        self.m_staticText4.Wrap(-1)

        self.m_staticText4.SetFont(
            wx.Font(wx.NORMAL_FONT.GetPointSize(), wx.FONTFAMILY_DEFAULT, wx.FONTSTYLE_NORMAL, wx.FONTWEIGHT_BOLD,
                    False, wx.EmptyString))

        bSizer9.Add(self.m_staticText4, 0, wx.ALIGN_CENTER | wx.ALL | wx.EXPAND, 5)

        self.m_button3 = wx.Button(self, wx.ID_ANY, u"OK", wx.DefaultPosition, wx.DefaultSize, 0)
        bSizer9.Add(self.m_button3, 0, wx.ALIGN_CENTER | wx.ALL, 5)

        self.SetSizer(bSizer9)
        self.Layout()
        bSizer9.Fit(self)

        self.Centre(wx.BOTH)

        # Connect Events
        self.m_button3.Bind(wx.EVT_BUTTON, self.button_click_ok)

    def __del__(self):
        pass

    def button_click_ok(self, event):
        self.Close()


class WarmingDialog(wx.Dialog):

    def __init__(self, parent, msg):
        wx.Dialog.__init__(self, parent, id=wx.ID_ANY, title=wx.EmptyString, pos=wx.DefaultPosition,
                           size=wx.DefaultSize, style=wx.DEFAULT_DIALOG_STYLE)

        self.SetSizeHints(wx.DefaultSize, wx.DefaultSize)

        bSizer9 = wx.BoxSizer(wx.VERTICAL)

        self.m_staticText4 = wx.StaticText(self, wx.ID_ANY, msg, wx.DefaultPosition, wx.DefaultSize,
                                           wx.ALIGN_CENTER_HORIZONTAL)
        self.m_staticText4.Wrap(-1)

        self.m_staticText4.SetFont(
            wx.Font(wx.NORMAL_FONT.GetPointSize(), wx.FONTFAMILY_DEFAULT, wx.FONTSTYLE_NORMAL, wx.FONTWEIGHT_BOLD,
                    False, wx.EmptyString))

        bSizer9.Add(self.m_staticText4, 0, wx.ALIGN_CENTER | wx.ALL | wx.EXPAND, 5)

        self.m_button3 = wx.Button(self, wx.ID_ANY, u"OK", wx.DefaultPosition, wx.DefaultSize, 0)
        bSizer9.Add(self.m_button3, 0, wx.ALIGN_CENTER | wx.ALL, 5)

        self.SetSizer(bSizer9)
        self.Layout()
        bSizer9.Fit(self)

        self.Centre(wx.BOTH)

        # Connect Events
        self.m_button3.Bind(wx.EVT_BUTTON, self.button_click_ok)

    def __del__(self):
        pass

    def button_click_ok(self, event):
        self.Close()